<template>
  <el-container style="position: absolute;">
    <el-header>
      <user :header="msg"></user>
    </el-header>
    <el-container>
      <el-aside width="250px">
        <!-- 导航 -->
        <Leftnav></Leftnav>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Leftnav from "../components/qianTai/LeftNav";
import user from "../components/public/user";
export default {
  name: "QIndex",
  components: {
    Leftnav,
    user
  },
  data() {
    return {
      msg: "前台管理系统"
    };
  }
};
</script>

<style scoped lang="less">
.el-container {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  .el-header {
    background-color: #b3c0d1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }

  .el-aside {
    background-color: #545c64;
    color: #333;
    text-align: center;
    line-height: 200px;
    width: 250px;
  }

  .el-main {
    background-color: #e9eef3;
    color: #333;
    text-align: center;
  }
}
body > .el-container {
  margin-bottom: 40px;
}
</style>
